package com.damie.domain;

import com.baomidou.mybatisplus.annotation.*;

import java.time.LocalDateTime;
import java.io.Serializable;
import java.util.Date;

import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 
 * </p>
 *
 * @author Alon
 * @since 2021-01-19
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("t_waste_order")
public class WasteOrder implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 废品订单id
     */
    @TableId(value = "waste_order_id",type = IdType.ASSIGN_ID)
    private String wasteOrderId;

    /**
     * 用户id
     */
    private String userId;

    /**
     * 留存电话
     */
    private String userPhone;

    /**
     * 用户所选地址
     */
    private String userAddressId;

    private String userAddress;

    /**
     * 创建订单时间
     */
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;

    /**
     * 用户修改订单时间
     */
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;

    /**
     * 接订单站点id
     */
    private String siteId;

    /**
     * 执行订单骑手
     */
    private String riderId;

    /**
     * 1用户下单/2站点接单/3已完成/4坏单用户取消订单
     */
    private Integer wasteOrderStatus;

    /**
     * 卖废品的预约时间
     */
    private Date appointmentTime;
    /**
     * 图片地址
     */
    private String wasteOrderData;

    /**
     * 订单留言
     */
    private String wasteOrderMessage;
}
